package com.aaa.hospital.nurse.service.Impl;

import com.aaa.hospital.nurse.mapper.WardregistrationMapper;
import com.aaa.hospital.nurse.pojo.Ward_occupancy_information;
import com.aaa.hospital.nurse.pojo.Wardregistration;
import com.aaa.hospital.nurse.service.WardregistrationService;
import com.aaa.hospital.nurse.util.WardrehistrationDB;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WardregistrationServiceImpl implements WardregistrationService {
    @Autowired
    private WardregistrationMapper mapper;


    @Override
    public List<Wardregistration> queryAll() {
        return mapper.queryAll();
    }

    @Override
    public List<WardrehistrationDB> queryById(int visid) {
        return mapper.queryById(visid);
    }

    @Override
    public List<Wardregistration> queryByName(int visid) {
        return mapper.queryByName(visid);
    }

    @Override
    public void insert(Ward_occupancy_information ward_occupancy_information) {
        mapper.insert(ward_occupancy_information);
    }
}
